import React from 'react'
import { renderRoutes } from 'react-router-config'
import { actionCreators } from './store/header';
import Header from './component/header/header'

class App extends React.Component{
  render(){
    return (
      <div>
        <Header></Header>
        {renderRoutes(this.props.route.routes)}
      </div>
      //二级路由
    )
  }
}
App.loadData = (store) => {
  return store.dispatch(actionCreators.getLogin()) 
}

export default App